package com.server.impl;

import com.dao.IVideoBarrage;
import com.model.SendTimes;
import com.model.Sort;
import com.model.VideoBarrage;
import com.server.HotBarrageService;
import com.server.VideoBarrageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoBarrageServiceImpl implements VideoBarrageService {
    @Autowired
    private IVideoBarrage iVideoBarrage;

    @Override
    public int insertVideoBarrage (VideoBarrage videoBarrage){return iVideoBarrage.insertVideoBarrage(videoBarrage);}

    @Override
    public VideoBarrage getVideoBarrage(String bv){return iVideoBarrage.getVideoBarrage(bv);}

    @Override
    public int updateVideoBarrage(VideoBarrage videoBarrage){return iVideoBarrage.updateVideoBarrage(videoBarrage);}

    @Override
    public int deleteVideoBarrage(int id){return iVideoBarrage.deleteVideoBarrage(id);}

    @Override
    public List<VideoBarrage> getAllVideoBarrage(VideoBarrage videoBarrage){return iVideoBarrage.getAllVideoBarrage(videoBarrage);}

    @Override
    public List<Sort> barrageSort() {
        return iVideoBarrage.barrageSort();
    }

    @Override
    public List<Sort> bvSort() {
        return iVideoBarrage.bvSort();
    }

    @Override
    public List<String> videoBarrageContent(String bvid){return iVideoBarrage.videoBarrageContent(bvid);}
}
